﻿using System;
using System.Collections.Generic;
using System.Text;
using PMS.EntityQuery;

namespace BusinessFacade
{
    public interface ISys_OrganizationHandlerExt
    {
        /// <summary>
        /// 读取部门根节点，即类型为分局的部门
        /// </summary>
        /// <returns></returns>
        Sys_OrganizationQuery GetRootOrganization();

        /// <summary>
        /// 根据父ID读取子部门
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        List<Sys_OrganizationQuery> GetChildByParentID(int parentId);

        /// <summary>
        /// 根据父ID，读取所有下级部门的ID（包括子部门的子部门...）
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        string GetAllChildIdsByParentID(int parentId);
    }
}
